LassoScript Utility
Basics Browse Detail

[DNS_Response->Answer]

Tag Link [DNS_Response->Answer] Category Utility
Type Member Source Available Yes
Support Preferred Version 8.5
Change New Data Source Any
Output Type Any Security None
Implementation LassoScript Sets Lasso 8.5

Description

[DNS_Response->Answer] wil return an array of answers for most DNS responses. Address lookups or reverse lookups will return an array of IP addresses or host names. MX record lookups wil return an array of pairs each with a priority and an IP address. Other lookups may return an array of strings or other data.

[DNS_Response] is a helper type which is used to format both DNS requests and responses. Normally a value of this type will only be returned from the [DNS_Lookup] tag when -ShowRequest or -ShowResponse is specified. However, this type can also be used to parse raw DNS requests or response if necessary.

Syntax

[Var: 'myDNSResponse' = (DNS_Lookup: 'www.example.com')]

[$myDNSResponse->Answer]

Parameters

No Parameters Required.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.